import time
from selenium.webdriver.common.by import By
from PO.Base.base import Base
#tain
class Page(Base):
    username_loc = (By.XPATH,'/html/body/div/div/section/section/main/div[1]/div[2]/div[1]/div/input')
    def username(self):
        self.sendkeys(self.username_loc,'admin')
    password_loc = (By.XPATH,'/html/body/div/div/section/section/main/div[1]/div[2]/div[2]/div/input')
    def password(self):
        self.sendkeys(self.password_loc,'admin')
    login_loc = (By.XPATH,'/html/body/div/div/section/section/main/div[1]/div[2]/button[2]/span')
    def login(self):
        self.click(self.login_loc)


